From 79a7e881b136fd6955d4c52a087a825adaa51562 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 23 Apr 2016 10:33:08 +0100 Subject: [PATCH] docs: Clarify the platform-dependency of GdkGLContext:use-es Not all platforms allow creating an OpenGL ES context. --- gdk/gdkglcontext.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index cd544798e3..87534c6eec 100644 --- a/gdk/gdkglcontext.c +++ b/gdk/gdkglcontext.c @@ -673,13 +673,14 @@ gdk_gl_context_set_is_legacy (GdkGLContext *context, * @context: a #GdkGLContext: * @use_es: whether the context should use OpenGL ES instead of OpenGL * - * Requests that GDK create a OpenGL ES context instead of an OpenGL one. + * Requests that GDK create a OpenGL ES context instead of an OpenGL one, + * if the platform and windowing system allows it. * * The @context must not have been realized. * - * You should check the return value of gdk_gl_context_get_use_es() to - * decide whether to use the OpenGL or OpenGL ES API, extensions, or - * shaders. + * You should check the return value of gdk_gl_context_get_use_es() after + * calling gdk_gl_context_realize() to decide whether to use the OpenGL or + * OpenGL ES API, extensions, or shaders. * * Since: 3.22 */ -- 2.30.2